    <%
      Object[] idarray = (Object[]) pageContext.getAttribute("idarray");
    %>
    <td class=td_center>
      <%
        if (idarray != null && idarray.length > 0) {
          Integer glaccountid = (Integer) glaccountinfo.get("glaccountid");
          int pos = -1;
          for (int i = 0; i < idarray.length; i ++) {
            if (idarray[i].equals(glaccountid)) {
              pos = i;
              break;
            }
          }
          if (pos > 0) {
      %>
      <a onclick="javascript:parent.location.href='ControlGLAccountEditFrm.jsp?<%= OvalTools.randomURL() %>&glaccountlistid='+frm.glaccountlistid.value+'&booksettype='+parent.up.document.all.frm.booksettype.value+'&entityid='+parent.up.document.all.frm.entityid.value+'&glaccountid=<%=JspHelper.filterNull( idarray[pos - 1] )%>'"><custom:button type="1" label="L_PreSubject" border="0" style="width:80"/></a>
      <%
          }
          if (pos < idarray.length - 1) {
      %>
      <a onclick="javascript:parent.location.href='ControlGLAccountEditFrm.jsp?<%= OvalTools.randomURL() %>&glaccountlistid='+frm.glaccountlistid.value+'&booksettype='+parent.up.document.all.frm.booksettype.value+'&entityid='+parent.up.document.all.frm.entityid.value +'&glaccountid=<%=JspHelper.filterNull( idarray[pos + 1] )%>'"><custom:button type="1" label="L_NextSubject" border="0" style="width:80"/></a>
      <%
          }
      %>
      <a onclick="javascript:parent.location.href='ControlGLAccountEditFrm.jsp?<%= OvalTools.randomURL() %>&glaccountlistid='+frm.glaccountlistid.value+'&booksettype='+parent.up.document.all.frm.booksettype.value+'&booksetid='+parent.up.document.all.frm.entityid.value+'&entityid='+parent.up.document.all.frm.entityid.value+'&parentaccountid=<custom:write name="glaccountinfo" property="parentaccountid"/>'"><custom:button type="1" label="L_NewNextSubject" border="0"  style="width:80"/></a>
      <%
        }
      %>
      <a onclick="javascript:parent.location.href='ControlGLAccountMgmtFrm.jsp?<%= OvalTools.randomURL() %>&glaccountlistid='+frm.glaccountlistid.value +'&booksettype='+parent.up.document.all.frm.booksettype.value+'&booksetid='+parent.up.document.all.frm.entityid.value"><custom:button type="1" label="L_Back" border="0" style="width:80"/></a>
    </td>
